<template>

	<view class="fastHeader">快捷操作</view>
	<view class="box">
	<u-grid :border="true">
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/add')">
				<view class="fcIcon">
					<u-image src="/static/icon/ruku.png" width="30" height="30"></u-image>
				</view>
				<text>入厂</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=0')">
				<view class="fcIcon">
					<u-image src="/static/icon/chaixie.png" width="30" height="30"></u-image>
				</view>
				<text>拆阀</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=2')">
				<view class="fcIcon">
					<u-image src="/static/icon/weixiu.png" width="30" height="30"></u-image>
				</view>
				<text>维修</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=3')">
			<view class="fcIcon">
				<u-image src="/static/icon/shiya.png" width="30" height="30"></u-image>
			</view>
			<text>试压</text>
			</view>
		</u-grid-item>
		<!-- <u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=4')">
			<view class="fcIcon">
				<u-image src="/static/icon/penqi.png" width="30" height="30"></u-image>
			</view>
			<text>喷漆</text>
			</view>
		</u-grid-item> -->
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=5')">
			<view class="fcIcon">
				<u-image src="/static/icon/hege.png" width="30" height="30"></u-image>
			</view>
			<text>喷漆入库</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list?status=6')">
				<view class="fcIcon">
					<u-image src="/static/icon/chuku.png" width="30" height="30"></u-image>
				</view>
				<text>出库</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			<view class="fcItem" @tap="needLoginToNav('/pages/list/list')">
				<view class="fcIcon">
					<u-image src="/static/icon/cpgl.png" width="30" height="30"></u-image>
				</view>
				<text>产品管理</text>
			</view>
		</u-grid-item>
		<u-grid-item>
			
		</u-grid-item>
	</u-grid>
</view>
</template>

<script>
	import helper from '../../common/helper';

	export default {
		mixins: [helper],
		data() {
			return {
				title: 'Hello'
			}
		},
		inject: ['globalData'],
		onLoad() {
			if(!uni.getStorageSync('token')){
				uni.reLaunch({
					url:'/pages/login/login'
				})
			}
			const app = getApp();
			console.log(this.globalData.name);
		},
		methods: {

		}
	}
</script>

<style>
	.box{
		border:1upx solid #ccc;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}

	.fastCard {
		display: flex;
		flex-wrap: wrap;
		width: 750upx;
	}

	.fcItem {
		width: 248upx;
		
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding: 40upx 0;
	}

	.fcItem .fcIcon {
		width: 100upx;
		height: 100upx;
		border-radius: 30upx;
		background: #eee;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.fcItem text {
		margin-top: 20upx;
		font-size: 12px;
	}

	.fastHeader {
		width: 710upx;
		height: 40upx;
		line-height: 40upx;
		padding: 20upx;
		border-left: 10upx solid #004ea2;
	}
</style>